package study;

import java.util.*;

public class Encrypteay {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("加密的文章");
        String s = in.nextLine();
        System.out.println("解密的文章");
        char[] ch = s.toCharArray();
        for (char c : ch){
            if ( Character.isLetter(c)){
                c = (char)(c - 3);
                if((int)(c-'A') < 0)
                    c = (char)(c + 26);
            }
            System.out.print(c);
        }

    }
}
